package com.example.pageability.slice;

import com.example.pageability.ResourceTable;
import ohos.aafwk.ability.AbilitySlice;
import ohos.aafwk.content.Intent;
import ohos.agp.window.dialog.ToastDialog;

public class OtherPageAbilitySliceDetail extends AbilitySlice {
    @Override
    public void onStart(Intent intent) {
        super.onStart(intent);
        super.setUIContent(ResourceTable.Layout_ability_other_detail);

        ToastDialog toast = new ToastDialog(this.getContext());
        toast.setText(intent.getStringParam("title"));
        toast.show();
    }
}
